package pl.edu.agh.iosr.gamblingzone.dao;

import java.util.List;

import pl.edu.agh.iosr.gamblingzone.model.Bet;
import pl.edu.agh.iosr.gamblingzone.model.BettingSlip;

/**
 * The Interface BetDAO.
 */
public interface BetDAO extends GenericDAO<Bet, Long> {
	
	/**
	 * Find all Bets for given BettingSlip.
	 * <br>
	 * Return only given page.
	 * 
	 * @param bettingSlip the betting slip
	 * @param page the page
	 * 
	 * @return the list< bet>
	 */
	List<Bet> findAll(BettingSlip bettingSlip, int page);
	
	/**
	 * Gets the entities count for given BettingSlip.
	 * 
	 * @param bettingSlip the betting slip
	 * 
	 * @return the entities count
	 */
	int getEntitiesCount(BettingSlip bettingSlip);
}
